package com.study.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.io.Serializable;
import java.util.List;

/**
 * 商品实体类
 * (Goodsinfo)实体类
 *
 * @author makejava
 * @since 2022-09-22 20:22:25
 */
@Data
@TableName("goodsinfo")
public class Goodsinfo implements Serializable {
    private static final long serialVersionUID = -17483921698643862L;
    @TableId(value = "good_id",type = IdType.NONE)
    private String goodId;
    @TableField("good_name")
    private String goodName;
    @TableField("good_price")
    private Double goodPrice;
    @TableField("good_stock")
    private Integer goodStock;
    @TableField("good_date")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date goodDate;
    @TableField("good_cover")
    private String goodCover;
    @TableField("good_images")
    private String goodImages;
    @TableField("good_type")
    private String goodType;
    @TableField(exist = false)
    private Goodstypeinfo typeName;
    @TableField(exist = false)
    private List goodImage;

}

